import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vuex from 'vuex'
import VueParticles from 'vue-particles'
Vue.use(VueParticles)
require('./mock');
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import FileSaver from 'file-saver';

import qs from "qs";
Vue.use(ElementUI);
Vue.use(Vuex);
Vue.use(FileSaver);
Vue.use(qs);
Vue.config.productionTip = false
Vue.prototype.$axios = axios
// axios.defaults.baseURL = 'http://127.0.0.1:8000/api/todo';
axios.defaults.baseURL = 'http://121.199.35.110/api/todo';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-fromurlencodeed'
axios.defaults.headers['Content-Type']='application/x-www-form-urlencoded';

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
